﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.Entity;
using System.ComponentModel.DataAnnotations;

namespace WmWebSystem.Models
{
    //关注
    public class Attention
    {
        [Key]
        public int Id { get; set; }

        public string ProjectNo { get; set; }

        public string ProjectName { get; set; }

        public string UserName { get; set; }

        public string Editor { get; set; }

        public DateTime AddTime { get; set; }
    }

    //评论
    public class Comment
    {
        [Key]
        public int Id { get; set; }

        public string ProjectNo { get; set; }

        public string Content { get; set; }

        public string Editor { get; set; }

        public DateTime AddTime { get; set; }

    }

    //文档
    public class Document
    {
        [Key]
        public int Id { get; set; }

        public int NewsId { get; set; }

        public string Title { get; set; }

        public string PathUrl { get; set; }

        public string Editor { get; set; }

        public string Type { get; set; }
        
        public DateTime AddTime { get; set; }
    }

    //我喜欢
    public class Favourite
    {
        [Key]
        public int FavouriteId { get; set; }

        public string ChildPrpjectNo { get; set; }

        public string UserName { get; set; }

        public DateTime AddTime { get; set; }
    }

    //财务
    public class Finance
    {
        [Key]
        public int FinanceId { get; set; }

        public string ProjectNo { get; set; }

        public string PriceNo { get; set; }     //支付编号

        public string PriceType { get; set; }    //支付方式

        public decimal Price { get; set; }  //支付金额

        public string Customer { get; set; }   //用户名

        public DateTime AddTime { get; set; }


    }

    //新闻公告
    public class News
    {
        [Key]
        public int NewsId { get; set; }

        public string Title { get; set; }

        public string Content { get; set; }

        public int ClickNum { get; set; }

        public string Editor { get; set; }

        public int Type { get; set; }

        public string TypeName { get; set; }

        public DateTime AddTime { get; set; }
    }

    //Slider图片
    public class Slider
    {
        [Key]
        public int SliderId { get; set; }

        public string Title { get; set; }

        public string Description { get; set; }

        public string Content { get; set; }

        public int Type { get; set; }   //项目类别

        public string Author { get; set; }

        public string TargetValue { get; set; }

        public string ImgUrl { get; set; }

        public string DelPath { get; set; }

        public string Editor { get; set; }

        public string LinkTo { get; set; }

        public DateTime AddTime { get; set; }
    }

    //项目
    public class Project
    {
        [Key]
        public int ProjectId { get; set; }

        public string ProjectNo { get; set; }

        public string ProjectName { get; set; }

        public string Content { get; set; }

        public DateTime AddTime { get; set; }

        public int Type { get; set; }   //项目类别

        public int Status { get; set; }  //1-项目编写完成提交审批;2-项目审批通过;3-项目审批未通过，被撤销;4-项目集资已完成

        public string Author { get; set; }

        public decimal TargetValue { get; set; }

        public decimal CurrentValue { get; set; }

        public string Logo { get; set; }

        public string DelPath { get; set; }

        public int FavouriteNum { get; set; }

        public int AttentionNum { get; set; }

        public string Editor { get; set; }

    }

    //项目图片
    public class ProjectAlbum 
    {
        public int Id { get; set; }

        public string ProjectNo { get; set; }

        public string Url { get; set; }

        public string DelPath { get; set; }

        public int Type { get; set; }    //1-Project 2-ChildProject

        public DateTime AddTime { get; set; }
    }

    //子项目
    public class ChildProject
    {
        public int ChildProjectId { get; set; }

        public string ProjectNo { get; set; }

        public string ChildName { get; set; }

        public string FileOldName { get; set; }

        public string MineType { get; set; }

        public string Content { get; set; }

        public string UrlPath { get; set; }

        public string DelPath { get; set; }

        public DateTime AddTime { get; set; }
    }

    //音乐池音乐
    public class Music
    {
        [Key]
        public int MusicId { get; set; }

        public string MusicNo { get; set; }

        public string ProjectNo { get; set; }

        public string MusicName { get; set; }

        public string Content { get; set; }

        public string Logo { get; set; }

        public string Url { get; set; }

        public string DelPath { get; set; }

        public string Author { get; set; }

        public int FavouriteNum { get; set; }

        public DateTime AddTime { get; set; }

        public string Editor { get; set; }

        public string FirstType { get; set; }

        public string SecondType { get; set; }
    }

    //音乐类型
    public class MusicType
    {
        [Key]
        public int TypeId { get; set; }

        public string FirstType { get; set; }

        public string SecondType { get; set; }
    }

    //客户
    public class UserAccount
    {
        [Key]
        public int UserId { get; set; }

        public string Name { get; set; }

        public string Email { get; set; }

        public string Telephone { get; set; }

        public string Logo { get; set; }

        public string DelPath { get; set; }

        public DateTime AddTime { get; set; }

        public string Address { get; set; }

        public int Account { get; set; }

        public int Status { get; set; }
    }
}
